package com.yh.construct.decorator.sendMessage;

/**
 * @program: design-patterns
 * @description: ${description}
 * @author: yangh0597@163.com
 * @date: 2021-03-08 21:38
 * @problem:
 **/
public class UpdateTableMessageDecorate extends MessageDecorate {


    public UpdateTableMessageDecorate(Message message) {
        super(message);
    }

    public void update() {
        System.out.println("更新数据库状态");
    }


    @Override
    protected void sendMsg() {


        super.message.sendMsg();
        this.update();
    }
}
